package crudfx.data;
import java.io.*;
import org.w3c.dom.*;
import javax.xml.parsers.*;
import javax.xml.transform.stream.*;
import javax.xml.transform.dom.*;
import javax.xml.transform.*;
import javafx.io.http.*;
import crudfx.data.*;
import java.net.*;
/**
 * @profile desktop
 * @author Sergey Surikov
 */
public class HTTPProperties extends StreamProperties{
    public function request(URL:String):Boolean{
        var r:Boolean=false;
        this.reset("http");
        try{
            var url:URL=new URL(URL);
            stream=url.openStream();
            //stream.close();
            r=load();
        }catch(x){
            x.printStackTrace();
            }
        return r;
        }
    }
